<template>
  <el-card>
    <el-row slot="header" type="flex" justify="space-between">
      <span>{{title}}</span>
      <a :href="url" target="_blank">{{url}}</a>
    </el-row>
    <slot />
  </el-card>
</template>

<script>
  export default {
    name: "example-card",
    props: ["title", "url"]
  };
</script>

<style scoped lang="less">
  .el-card /deep/ .el-card__body > div + div {
    margin-top: 20px;
  }
  .el-card /deep/ .el-card__body > div {
    padding: 10px;
    border: 1px solid #eee;
  }
</style>
